local jw_baohe = fk.CreateSkill {
    name = "jw_baohe",
}
Fk:loadTranslationTable {
    ["jw_baohe"] = "暴吓",
    [":jw_baohe"] = "出牌阶段限一次，你可以选择一名有“炽”的角色，移去其所有“炽”，根据移除的数量依次执行；" ..
        "1.其失去一点体力；2.你回复一点体力；3.其减去一点体力上限；若均执行，你增加一点体力上限，摸两张牌。",

         ["$jw_baohe1"] = "凭谋破阵，以勇克敌！",
          ["$jw_baohe2"] = "纵马厉战，勇冠三军！",
}
jw_baohe:addEffect("active", {
    name = "jw_baohe",
    anim_type = "offensive",
    card_num = 0,
    target_num = 1,
    prompt ="暴吓：你可以选择一名有“炽”的角色，根据其“炽”标记数量执行效果",
    target_filter = function(self, player, to_select, selected, selected_cards)
        return #selected == 0 and to_select:getMark("@zhangfei_chi") > 0
    end,
    can_use = function(self, player)
        return player:usedSkillTimes(jw_baohe.name, Player.HistoryPhase) == 0
    end,
    card_filter = Util.FalseFunc,
    on_use = function(self, room, effect)
        local player = effect.from
        local target = effect.tos[1]
        local n = target:getMark("@zhangfei_chi")
        if n > 0 then
            room:loseHp(target, 1, jw_baohe.name)
        end
        if n > 1 then
            room:recover({
                who = player,
                num = 1,
                recoverBy = player,
                skillName = jw_baohe.name
            })
        end
        if n > 2 then
            room:changeMaxHp(target, -1)
            room:changeMaxHp(player, 1)
            player:drawCards(2, jw_baohe.name)
        end
        room:setPlayerMark(target, "@zhangfei_chi", 0)
    end,
})
return jw_baohe